package cn.wizzer.app.user.modules.services.account;

import cn.wizzer.app.sys.modules.models.SysMsg;
import cn.wizzer.app.user.modules.models.UserRecharge;
import cn.wizzer.app.user.modules.models.enums.ChannelEnum;
import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.framework.page.Pagination;

import java.math.BigDecimal;

public interface UserRechargeService extends BaseService<UserRecharge> {

    UserRecharge add(BigDecimal amount, String appid, ChannelEnum channel);

    void manual(BigDecimal amount, String toUser, String updaterId);

    Pagination listPage(String orderNo, String searchKeyword, String[] searchDate, Integer status,
                        ChannelEnum channel, int pageNumber, int pageSize);


    /**
     * 确认付款/确认到账
     *
     * @param id
     * @param sure
     * @param platformUid
     */
    void sure(String id, Boolean sure, String platformUid);


    /**
     * 查询充值记录详情
     *
     * @param where
     * @return
     */
    UserRecharge detail(String where);
}
